import { FormInstance } from "antd";

export type layoutPorps = {
  labelCol: { span: number, [k: string]: number }
  wrapperCol: { span: number, [k: string]: number }
}

export type FormRenderProps = {
  form: FormInstance
  formItem: any
  layout: layoutPorps
  onValuesChange: () => void
  defaultData: any
  onSubmit: () => void
  submitBtns: any[]
  className: string
}

export type FormItemRenderProps = {
  type: string
  label: string
  name: string
  rules: any
  content: any
  enabled: boolean
  defaultText: string
}